<?php
namespace app\index\model;
use app\common\model\Base;

class CaijinList extends Base
{
    //设置彩金金额
    public function setActivityMoney($username,$user_class,$cjje,$fstime,$beizhu,$czadmin,$zzhdid,$je) {
        $res = CaijinList::name('caijin_list')
                ->bind(['username'=>$username,'user_class'=>$user_class,'cjje'=>$cjje,'fstime'=>$fstime,'beizhu'=>$beizhu,'czadmin'=>$czadmin,'zzhdid'=>$zzhdid,'cjhje'=>$je+$cjje])
                ->insert(['username'=>':username','user_class'=>':user_class','cjje'=>':cjje','fstime'=>':fstime','beizhu'=>':beizhu','czadmin'=>':czadmin','zzhdid'=>':zzhdid','cjhje'=>':cjhje']);
        return $res;
    }
    
}